﻿#define _CRT_SECURE_NO_WARNINGS  1
//一定要动手，例子不管多么简单，建议至少自己手敲一遍看看是否理解了里头的细枝末节。
//一定要学会思考，思考为什么要这样，而不是那样。还要举一反三地思考
#include"Binary.h"

int main()
{
	
	
	Binary* node1 = StrBinarTree(1);
	Binary* node2 = StrBinarTree(2);
	Binary* node3 = StrBinarTree(3);
	Binary* node4 = StrBinarTree(4);
	Binary* node5 = StrBinarTree(5);
	Binary* node6 = StrBinarTree(6);
	node1->left = node2;
	node1->right = node4;
	node2->left = node3;
	node4->left = node5;
	node4->right = node6;
	
	TreeLevelOrder(node1);
	int n= BinaryTreeComplete(node1);
	printf("\n%d", n);
	return 0;
}